# 社区vo层


# 按照要求返回社区页面的帖子
def vo_community_default(result):
    if not result:
        return {'success': False}
    else:
        return {'article': result}


# 文章详情页
def vo_community_detail(result):
    if not result:
        return {'success': False}
    else:
        return result


# 发评论
def vo_community_sendCommit(result):
    return {'success': result}


# 文章点赞/取消点赞
def vo_community_articleLike(result):
    return {'success': result}


# 评论点赞/取消点赞
def vo_community_commitLike(result):
    return {'success': result}


# 回复点赞/取消点赞
def vo_community_replyLike(result):
    return {'success': result}


# 评论回复
def vo_community_reply(result):
    return {'success': result}


# 通用失败代码
def vo_community_default_fail():
    return {'success': False}
